package cn.edu.xust.service.impl;

import cn.edu.xust.util.PageUtils;
import cn.edu.xust.util.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.edu.xust.dao.DeviceRegisterLogDao;
import cn.edu.xust.entity.DeviceRegisterLogEntity;
import cn.edu.xust.service.DeviceRegisterLogService;


@Service("deviceRegisterLogService")
public class DeviceRegisterLogServiceImpl extends ServiceImpl<DeviceRegisterLogDao, DeviceRegisterLogEntity> implements DeviceRegisterLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DeviceRegisterLogEntity> page = this.page(
                new Query<DeviceRegisterLogEntity>().getPage(params),
                new QueryWrapper<DeviceRegisterLogEntity>()
        );

        return new PageUtils(page);
    }

}